<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="ebb365,ebb365,ebb365">
<meta http-equiv="description" content="ebb365">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/admin/css/css.css">
<script>
function checkForm(){
    if(document.forms[0].catalogid.value==-1){
        alert('请选择一个类进行管理');
        return false;
        }
    return true;    
}
</script>
</head>
<body>
<logic:present name="deleteOk">
<bean:write name="deleteOk"/>
</logic:present>
<table align="center" width="80%">
<tr><td colspan="5" align="right">
<html:form action="/admin/PageCommendAction.do?method=manageCommendByCatalog" onsubmit="return checkForm();">
<html:select property="catalogid" size="1">
<html:option value="-1">请要管理的分类</html:option>
<logic:present name="optionStr">
<bean:write name="optionStr" filter="false"></bean:write>
</logic:present>
</html:select>
<html:submit>确定</html:submit>
</html:form>
</td></tr>
<tr><td>ID</td><td>标题</td><td>是否图片连接</td><td>排序</td><td>管理</td></tr>
<logic:present name="commendlist">
<logic:iterate id="commend" name="commendlist">
<tr><td>${commend.commendId}</td>
<td>${commend.titleName}</td>
<td>${commend.imgUrl}</td>
<td>${commend.taxis}</td>
<td><html:link href="/admin/PageCommendAction.do?method=editPageCommend&commendId=${commend.commendId}&catalogid=${catalogid}" target="main">管理</html:link>
<html:link href="/admin/PageCommendAction.do?method=deletePageCommend&commendId=${commend.commendId}&catalogid=${catalogid}" target="main">删除</html:link></td></tr>
</logic:iterate>
</logic:present>
</table>
</body>
</html>